package com.cloudfun.campusshare.common.model.dto.kjt;

import com.cloudfun.campusshare.common.constant.KjtAuditStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * Created by Huqin on 2020/8/5
 */
@Data
@ApiModel("快捷通子商户主动提现到卡响应DTO")
@JsonPropertyOrder({"partnerId", "outTradeNo", "identityId", "tradeNo", "partnerUserId", "status", "failReason"})
public class KjtSubMerchantWithdrawalCashRespDTO {

    /**
     * [6,32]
     * 平台(商户)订单号，字母数字下划线，确保每笔订单唯一
     */
    @JsonProperty("out_trade_no")
    private String outTradeNo;

    /**
     * 快捷通订单号
     */
    @JsonProperty("trade_no")
    private String tradeNo;

    /**
     * 快捷通给平台分配的唯一会员ID
     */
    @JsonProperty("partner_id")
    private String partnerId;

    /**
     * 平台用户ID，平台方分配给用户的唯一标识
     */
    @JsonProperty("partner_user_id")
    private String partnerUserId;

    /**
     * 快捷通分配给平台方子商户的会员ID
     */
    @JsonProperty("identity_id")
    private String identityId;

    /**
     * 提现状态，
     * S-成功；P-处理中；F-失败
     */
    private KjtAuditStatus status;

    /**
     * 提现失败原因，status为F时非空
     */
    @JsonProperty("fail_reason")
    private String failReason;
}
